package cn.kgc.vue.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName sys_user
 */
@TableName(value ="sys_user")
@Data
public class User implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 用户昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 性别 1 男  2 女
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 部门名称
     */
    @TableField(value = "dept_id")
    private Integer deptId;

    /**
     * 联系方式
     */
    @TableField(value = "tel")
    private String tel;

    /**
     * 账号状态 1可用  0 禁用
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 随机盐
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 逻辑删除字段
     */
    @TableField(value = "is_delete")
    @TableLogic
    private Integer isDelete;

    /**
     * 添加时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}